import reques from '@/utils/reques'
export function getBanner(par){
    return reques({
        method:"get",
        url:'/banner/1',
        parmas:par
    })
}
export function getTheme(par){
    return reques({
        method:"get",
        url:'/theme?ids=1,2,3',
        parmas:par
    })
}
export function getProduct(par){
    return reques({
        method:"get",
        url:'/product/recent',
        parmas:par
    })
}




// let base = 'https://yc211.cn:88/api/v1'
// axios.defaults.baseURL = 'https://yc211.cn:88/api/v1'
// axios.all([axios.get('/banner/1',{}),
// axios.get('/theme?ids=1,2,3',{}),
// axios.get('/product/recent',{})])
// .then(axios.spread((banner,theme,product) => {
//   console.log(banner)
//   console.log(theme)
//   console.log(product)
// }))